﻿import flash.external.*

//自动缩放背景大小
function txt_complete(obj:Object)
{
	//img_bg._width = obj.textWidth + 60
	//img_bg._height= obj.textHeight + 60
	//ExternalInterface.call("t_tools_plane.btn_complete", obj.textHeight, obj.textWidth);
}
txt_tips.txt_title.addEventListener("complete", this, "txt_complete");

my_fmt = new TextFormat();
//my_fmt.bold = true;
my_fmt.font = "黑体";
my_fmt.size = 16;
function set_title(txt:String)
{
	txt_tips.txt_title.setText(txt, my_fmt);
}